import Vue from 'vue'
import router from './router'
import App from './App.vue'
import { debounce, throttle, input, drag, tooltip, outside } from '@zhizu/directive-vue2'

Vue.use({
  install(Vue) {
    Vue.directive('debounce', debounce)
    Vue.directive('throttle', throttle)
    Vue.directive('input', input)
    Vue.directive('drag', drag)
    Vue.directive('tooltip', tooltip)
    Vue.directive('outside', outside)
  }
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
